<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    let str = '我们是web31期，我们都是好孩子'
    let [a, b, c, d] = str
    console.log(a, b, c, d);

    console.log(str[1]);
    console.log(str.substr(1, 1));
    console.log(str.substring(1, 2));
    console.log(str.slice(1, 2));
    console.log(str.charAt(1));

</script>

</html>